# Contributor: Adam Jensen <adam@acj.sh>
# Maintainer: Adam Jensen <adam@acj.sh>
pkgname=h26forge
pkgver=0.1.0_git20231031
# Project does not have semver-style releases yet
_release_tag=latest-8dde7ec
pkgrel=0
pkgdesc="Analyze, generate, and manipulate syntactically correct but semantically spec-non-compliant video files"
url="https://github.com/h26forge/h26forge"
arch="x86_64 aarch64" # dependency crates fail to build on other arches
license="MIT"
makedepends="cargo cargo-auditable clang-dev"
source="$pkgname-$_release_tag.tar.gz::https://github.com/h26forge/h26forge/archive/refs/tags/$_release_tag.tar.gz"
builddir="$srcdir/$pkgname-$_release_tag"

build() {
	cargo auditable build --release
}

check() {
	cargo test --release
}

package() {
	install -Dm755 target/release/"$pkgname" -t "$pkgdir"/usr/bin
}

sha512sums="
f5a3d9b84449388f705f399fd7a7ebba75b3f30b4ca6c0b54ca740e2dceb3583e75a77c8a5e98c6a4e49792e179900a19d5499aefd9324edae5d557aa157466e  h26forge-latest-8dde7ec.tar.gz
"
